package com.example.whatrubbish.vo;

import com.example.whatrubbish.model.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserWithIntegration implements Serializable {
    private Integer score;

    private String userId;

    private String userName;

    private String userAvatarurl;

    private Date userTime;

    public UserWithIntegration(User user, Integer score) {
        this.score = score;
        this.userId = user.getUserId();
        this.userName = user.getUserName();
        this.userAvatarurl = user.getUserAvatarurl();
        this.userTime = user.getUserTime();
    }
}
